package com.mybatis.dao;

import java.util.Map;

public class PathLockSqlProvider {

	public String updatePathLock(Map<String, Object> map) {
		int item = (int) map.get("item");
		String name = (String) map.get("name");
		String key = (String) map.get("key");
		String sql = "update paths_lock set name='" + name + "',`key`='" + key + "' where item =" + item;
		return sql;
	}

	public String insertPathLock(Map<String, Object> map) {
		int item = (int) map.get("item");
		String name = (String) map.get("name");
		String key = (String) map.get("key");
		String sql = "insert into paths_lock (item,`key`,name)" + " values (" + item  + ",'" + key + "','"
				+ name + "')";
		return sql;
	}

}
